// @material-ui/icons
import Dashboard from "@material-ui/icons/Dashboard";
import Person from "@material-ui/icons/Person";
import DashboardPage from "../pages/index";
import UserManager from "../pages/user/index";
import UserProfile from "../pages/userProfile";
import RoleManager from "../pages/user/roleManager";
import Test1 from "../pages/test1";
import Test2 from "../pages/test2";
import {Assignment, Mood, SendOutlined} from "@material-ui/icons";

const dashboardRoutes = [
  {
    path: "/dashboard",
    name: "首页",
    icon: Dashboard,
    component: DashboardPage,
    layout: "/main"
  },
  {
    name: "人员管理",
    icon: Person,
    children:[
      {
        path: "/userManager",
        name: "人员维护",
        icon: SendOutlined,
        component: UserManager,
        layout: "/main"
      },
      {
        path: "/test1",
        name: "添加人员",
        icon: Assignment,
        component: Test1,
        layout: "/main"
      },
      {
        path: "/test2",
        name: "删除人员",
        icon: Mood,
        component: Test2,
        layout: "/main"
      }
    ]
  },
  {
    path: "/role",
    name: "角色管理",
    icon: "content_paste",
    component: RoleManager,
    layout: "/main"
  },
  {
    path: "/userProfile",
    name: "用户简介",
    icon: Person,
    component: UserProfile,
    layout: "/main"
  }
];

export default dashboardRoutes;
